<?php
/**
 * @version        $Id: ajax_loginsta.php 1 8:38 2010年7月9日Z tianya $
 * @package        DedeCMS.Member
 * @copyright      Copyright (c) 2007 - 2010, DesDev, Inc.
 * @license        http://help.dedecms.com/usersguide/license.html
 * @link           http://www.dedecms.com
 */
define('AJAXLOGIN', TRUE);

require_once(dirname(__FILE__)."/config.php");
AjaxHead();
if($myurl == '') exit('');

$uid  = $cfg_ml->M_LoginID;

!$cfg_ml->fields['face'] && $face = ($cfg_ml->fields['sex'] == '女')? 'dfgirl' : 'dfboy';
$facepic = empty($face)? $cfg_ml->fields['face'] : $GLOBALS['cfg_memberurl'].'/templets/images/'.$face.'.png';
?>
<div class="user-info" >
  <div class="user-avatar" onclick="window.location.href='<?php echo $cfg_memberurl; ?>/index.php'"><img src="<?php echo $facepic;?>" alt="包用户头像" class="avatar"><i class="icons-<?php echo $cfg_ml->GetStatubiaoyi($dsql); ?>Vip"></i></div>
  <span class="user-name" onclick="window.location.href='<?php echo $cfg_memberurl; ?>/index.php'"></span>
  <!--个人中心下拉面板（hover上去之后出现）-->
  <div class="user-opearation-wrap">
    <div class="user-opearation">
      <div class="baotu-id-wrap">
        <div class="avatar-wrap"><img src="<?php echo $facepic;?>" alt=""><i class="icons-notVip icons-perVip"></i><i class="pb-icon icons-<?php echo $cfg_ml->GetStatubiaoyi($dsql); ?>Vip"></i></div>
        <div class="opearation-info">
          <p><?php echo $cfg_ml->M_UserName; ?></p>
          <p>会员ID：</span><span class="baotu-id"><?php echo $cfg_ml->M_ID; ?></p>
        </div>
      </div>
      <ul class='opearations  '>
        <li class="first forever">
          <!--这两个a标签跳的是同一个链接-->
          <a href="/member/buy.php" target="_blank">
          <object>
            <a href="<?php echo $cfg_memberurl; ?>/buy.php" target="_blank" class="open-life-member graHover">限时抢购</a>
          </object>
          </a></li>
        <li><a href="/a/vip/" target="_blank" ><i class="iconfont icon-tequan"></i>VIP特权</a></li>
        <li><a href="<?php echo $cfg_memberurl; ?>/index.php" target="_blank" ><i class="iconfont icon-gerenzhongxin"></i> 个人中心 </a></li>
        <li><a href="<?php echo $cfg_memberurl; ?>/download.php" target="_blank" ><i class="iconfont icon-xiazai-copy"></i> 我的下载 </a></li>
        <li><a href="<?php echo $cfg_memberurl; ?>/stow.php" target="_blank" ><i class="iconfont icon-shoucang"></i> 我的收藏 </a></li>
        <li class="tuichudenglu"><a href="javascript:;"><i class="iconfont icon-guanbikaiqi"></i> 退出登录 </a></li>
      </ul>
    </div>
  </div>
</div>
